//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.neurosky.thinkgear;

public class FFTResult {
    protected float[] real;
    protected float[] imaginary;
    protected float[] power;

    public FFTResult(float[] var1, float[] var2) {
        this.real = var1;
        this.imaginary = var2;
        this.power = this.a();
    }

    public float[] getReal() {
        return this.real;
    }

    public float[] getImaginary() {
        return this.imaginary;
    }

    public float[] getPower() {
        return this.power;
    }

    private float[] a() {
        this.power = new float[this.real.length];

        for(int var1 = 0; var1 < this.power.length; ++var1) {
            this.power[var1] = (float)Math.pow(Math.pow((double)Math.abs(this.real[var1]), 2.0D) + Math.pow((double)Math.abs(this.imaginary[var1]), 2.0D), 0.5D);
        }

        return this.power;
    }
}
